﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace NJL.WebManage.SystemAdmin
{
    public partial class SmsRegister : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnRegisterMD_Click(object sender, EventArgs e)
        {
            string SmsMD_SN = System.Configuration.ConfigurationManager.AppSettings["SMSMDSN"];
            string SmsMD_PWD = System.Configuration.ConfigurationManager.AppSettings["SMSMDPWD"];

            WebManage.sms.WebService sms = new WebManage.sms.WebService();

            string result_register = sms.Register(SmsMD_SN, SmsMD_PWD, "陕西省", "西安市", "互联网", "陕西皇朝网络技术有限公司", "戴军涛", "88664825", "18629085168", "120851528@qq.com", "88664825", "西安市莲湖区桃源路捷瑞公园首府4单元806", "710065", "");
            if (result_register.StartsWith("-"))
            {
                //注册失败，输出失败信息
                Royalsoft.Common.MessageBox.ShowAndRedirect(this, result_register,"SmsRegister.aspx");
            }
            else
            {
                //注册成功
                Royalsoft.Common.MessageBox.ShowAndRedirect(this, "注册成功", "SmsRegister.aspx");
            }
        }
    }
}